def call(String projectName, String buildDate) {
    script {
        baseFile = "/usr/local/.jenkins/sonarqube/${env.ENV}"
        sh """mkdir -p ${baseFile}"""
        sonarqubeFile = "${baseFile}/${projectName}"
        boolean fe = fileExists file: sonarqubeFile
        if (fe) {
            content = readFile file: sonarqubeFile
            if (content == buildDate) {
                return false
            }
        }
        writeFile file: sonarqubeFile, text: "${buildDate}"
        return true
    }
}